from django.db import models
from django.contrib.auth.models import User

class RSMUser(models.Model):
    user = models.OneToOneField(User)
    friends = models.ManyToManyField('self', symmetrical=False, blank=True)
    seen = models.ManyToManyField('my_movies.Movie', related_name='viewers', blank=True)
    likes = models.ManyToManyField('my_movies.Movie', related_name='fans', blank=True)
    blacklist = models.ManyToManyField('my_movies.Movie', related_name='haters', blank=True)
    groups = models.ManyToManyField('my_groups.RSMGroup', related_name='groupps', blank=True)
    def __unicode__(self):
        return self.user.__str__()
